﻿
$(document).ready(function () {
    $('#menu2').tabify();
    $('#menu').tabify();
    $('#slider').nivoSlider({
                effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
                slices: 8,
		        animSpeed:900, //Slide transition speed
                pauseTime:3000,
                directionNav:true, //Next & Prev
                directionNavHide:true, //Only show on hover
                controlNav:true, //1,2,3...
                keyboardNav:true, //Use left & right arrows
            });

});

$(function () {
    $("#fromdate_search_div input").datepicker({
        defaultDate: "+0w",
        altFormat: "dd-mm-yy",
        changeMonth: true,
        numberOfMonths: 1,
        onClose: function (selectedDate) {
            $("#todate_search_div input").datepicker("option", "minDate", selectedDate);
        }
    });
    $("#todate_search_div input").datepicker({
        defaultDate: "+0w",
        altFormat: "dd-mm-yy",
        changeMonth: true,
        numberOfMonths: 1,
        onClose: function (selectedDate) {
            $("#fromdate_search_div input").datepicker("option", "maxDate", selectedDate);
        }
    });

    $("#tour_menu").hover(function(){
        $("#tour_submenu").css("display","block");
    },function(){
        $("#tour_submenu").css("display","none");
    });

    $("#tour_submenu").hover(function(){
        $("#tour_submenu").css("display","block");
    },function(){
         $("#tour_submenu").css("display","none");
    });

}); 

function home()
{
window.location = "/Default.aspx";
}